package com.agimatec.locators.predicate;

public class Tag implements LocatorPart {
    protected String tagName;

    public Tag(String tagName) {
        this.tagName = tagName;
    }

    public String getTagName() {
        return tagName;
    }

    public void setTagName(String tagName) {
        this.tagName = tagName;
    }

    public String locatorPartString(LocatorStringFactory factory) {
        return factory.getTag(tagName).locatorString();
    }
}
